import { UserProfileBadge } from "@/components/layout/user-profile-badge"
import Image from "next/image"
import { authOptions } from "@/app/api/auth/[...nextauth]/route"
import { getServerSession } from "next-auth/next"
export default async function PendingLayout({
  children,
}: {
  children: React.ReactNode
}) {
    const session = await getServerSession(authOptions)

  return (
    <div className="min-h-screen bg-gradient-to-br from-blue-50 to-indigo-100">
      {/* 헤더 없음 - 단순한 로고만 */}
      <div className="w-full py-4 px-6">
        <div className="flex justify-between items-center">
          <div className="flex items-center gap-2">
            <Image
              className="dark:invert"
              src="/images/vercel.svg"
              alt="EVCP Logo"
              width={20}
              height={20}
            />
            <span className="text-lg font-bold text-gray-800">eVCP</span>
          </div>
          
          {/* 간단한 사용자 정보만 */}
          <UserProfileBadge user={session?.user} />
        </div>
      </div>

      {/* 메인 컨텐츠 */}
      <main className="container mx-auto px-6 py-8">
        {children}
      </main>
    </div>
  )
}



